export interface formItem{
	name:string   //字段名称
	key:string   //字段键名
	type:formType | string   //输入框类型
	placeholder?:string  //提示词
	options?:Array<{name:string,value:string | number}>  //选项配置，仅type= radio | checkbox 有效
	rules?:Array<(val:any)=>{msg:string,flag:boolean} | boolean>  //验证规则
	max?:number  //最大可选数量，仅type=images有效
	regeo?:boolean  //是否逆解析地址，仅type=address有效
	default?:any   //默认值 
	required?:boolean  //是否必填，仅展示标识不进行验证
	rangeKey?:string   //选择器的label键名
	valueKey?:string  //选择器的value键名
	tips?:string   //提示文本
} 



//输入框类型
export enum formType {
	text = 'text',
	number = 'number',
	radio ='radio',
	checkbox= 'checkbox',
	images = 'images',
	address = 'address',
	idcard = 'idcard',
	select = 'select',
	time = 'time'
}


